package com.pie4cloud.pie.job.biz.service;

import com.pie4cloud.pie.job.api.entity.JobInfoEntity;

import java.util.List;

/**
 * Created by zzj on 2019/12/20.
 */
public interface JobInfoService {

    JobInfoEntity saveDto(JobInfoEntity jobInfoDto);

    public List<JobInfoEntity> findJobList();

    public Object getJobById(Long id);

    public void init();

    public void start(JobInfoEntity jobInfoDto);

    public void stop(Long id);

    public void stopByIds(List<Long> ids);

    public void execute(Long id);


    public void startById(Long id);

    public void stopById(Long id);
}
